
<html>
<head>
<title>Doctor car route</title>

<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/jquery.datetimepicker.css" />
<link rel="stylesheet" href="css/jquery-ui-1.11.0.css" />
<link rel="stylesheet" href="css/style.css" />


<script src="js/jquery-1.11.0.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.datetimepicker.js"></script>
<script src="js/jquery-ui-1.11.0.js"></script>

<style type="text/css">
body {
	background: url('img/bg2.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
.well {
	opacity:0.9;
}
.label-default {
	background-color:#C8C8C8;
	font-size: 0.9em;
}

</style>
<script type="text/javascript">
	$('document').ready(function(){
		var url = window.location.href;
        $('a[href="'+url.substring(url.lastIndexOf('/')+1)+'"]').addClass("btn btn-default");
	});
</script>


</head>
<body>

	<?php
	session_start ();
	$carNo = $_SESSION ["car_no"];
	$userType = $_SESSION ["login_type"];

	if(empty($carNo)){
	header('Location: logout.php');
	}

	?>

	<div class="container-fluid">
		<div class="row well" style="padding: 5px; margin-bottom: 1px">
			<div class="header">
				<h1>Doctor Car Drive Record System</h1>
			</div>

		</div>

	</div>


	<header class="navbar  bs-docs-nav" role="banner"
		style="background-color: #f5f5f5;">
		<div class="container">
			<div class="navbar-header">
				<button class="navbar-toggle" type="button" data-toggle="collapse"
					data-target=".bs-navbar-collapse">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>

				<?php if(strcmp($carNo,"admin")!=0){?>
				<a href="" class="navbar-brand" id="vehicalNo">Vehicle Registration Number : <span style="color: black;"> <?php echo htmlspecialchars($carNo); ?>
				</span>

				</a>
				<?php } ?>
				
			</div>
			<nav class="collapse navbar-collapse bs-navbar-collapse"
				role="navigation">
				<ul class="nav navbar-nav">
					
					<?php if(strcmp($carNo,"admin")!=0){?>
					<li class="active"><a href="view.php">View Drive Records</a></li>
					<li><a href="addnew.php">Add Drive Record</a></li>
					<?php } ?>

					<?php if(strcmp($carNo,"admin")==0){?>
					<li><a href="#">View Car Records</a></li>
					<li><a href="#">Add New Car</a></li>
					<?php } ?>

				</ul>
				<ul class="nav navbar-nav navbar-right">
					<li><a href="logout.php">Signout</a></li>
				</ul>
			</nav>
		</div>
	</header>